//
//  UIImageView+QYXCarveImage.m
//  OpenYourEyes
//
//  Created by dllo on 16/6/6.
//  Copyright © 2016年 Google AdWords. All rights reserved.
//

#import "UIImageView+QYXCarveImage.h"

@implementation UIImageView (QYXCarveImage)


+ (void)CareImageWithUIImageView:(UIImageView *)imageView
{
    imageView.contentMode = UIViewContentModeScaleAspectFill;
    [imageView setContentScaleFactor:[[UIScreen mainScreen] scale]];
    
    imageView.autoresizingMask = UIViewAutoresizingFlexibleHeight;
    imageView.clipsToBounds = YES;
}

@end
